package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 解答表
 *
 * @author flyme
 * @date 2021-08-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_order_answer")
@TableAlias("orderAnswer")
@ApiModel(value = "BusOrderAnswer对象", description = "解答表")
public class BusOrderAnswer extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "answerId", type = IdType.ASSIGN_ID)
    private Long answerId;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "解答人")
    private Long answerUserId;

    @ApiModelProperty(value = "解答内容")
    private String answerContent;

    @ApiModelProperty(value = "视频解答")
    private String videoUrl;

    @ApiModelProperty(value = "报价")
    private BigDecimal quotedPrice;

    @ApiModelProperty(value = "还价")
    private BigDecimal bargainPrice;

    @ApiModelProperty(value = "状态(0：未通过1：审核中：2已通过)")
    private Integer answerState;

    @ApiModelProperty(value = "是不是答案(0不是,1是)")
    private Integer isAnswer;

    @ApiModelProperty(value = "领取状态(0否,1是)")
    private Integer receiveState;

    @ApiModelProperty(value = "是否结算(0未结算,1结算)")
    private Integer isSettle;

    @ApiModelProperty(value = "审核日期")
    private Date checkTime;

    @ApiModelProperty(value = "结算截至日期")
    private Date settleExpireTime;


}
